package com.example.mybatispuls.blog.controller;



import com.example.mybatispuls.blog.service.ExcelService;
import com.example.mybatispuls.config.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 开发者
 * @since 2022-05-12
 */
@RestController
@RequestMapping("/blog/excel")
public class ExcelController {
    @Autowired
    private ExcelService excelService;

    @GetMapping("/list")
    public CommonResult ss(){
        return CommonResult.success(excelService.queryExcel());
    }
}

